package com.tau.egonetwork.gui.linkedin;

import org.eclipse.swt.widgets.Shell;

import com.tau.egonetwork.gui.core.ProfileEditDialog;
import com.tau.egonetwork.linkedin.LinkedinFollowProfile;
import com.tau.egonetwork.linkedin.LinkedinUtils;
import com.tau.egonetwork.profiles.MainProfile;
import com.tau.egonetwork.profiles.Profile;

public class LinkedinNewProfileDialog extends ProfileEditDialog<String> {

	public LinkedinNewProfileDialog(Shell parent,
			MainProfile<String> mainProfile) {
		super(parent, mainProfile);
	}
	
	@Override
	protected Profile<String> generateNewProfile(String name) {
		return new LinkedinFollowProfile(LinkedinUtils.generateRandomID(), name);
	}

}
